Skip to content

Use reusable frontend workflow from armada - #2695

Merged
aeshub merged 1 commit into
equinor:mainfrom
aeshub:use-reusable-frontend-workflow
May 11, 2026
Merged

Use reusable frontend workflow from armada#2695
aeshub merged 1 commit into
equinor:mainfrom
aeshub:use-reusable-frontend-workflow

Conversation

@aeshub

@aeshub aeshub commented May 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces the inline frontend_lint_and_test.yml workflow with a caller to the new reusable workflow in equinor/armada (merged in armada#48). All existing checks are preserved (prettier, eslint, build, test, ts-unused-exports).

Changes

  • Replace inline frontend CI with reusable workflow call
  • Align npm scripts (lint, prettier_check, build, test)
  • Add eslint-plugin-react and eslint-plugin-react-refresh to eslint config
  • Pin eslint-plugin-react-hooks to v6 to avoid React Compiler rules (upgrade tracked in Enable React Compiler eslint rules and fix violations #2698)
  • Add eslint-disable comments for 3 pre-existing rules-of-hooks violations in InspectionsContext.tsx
  • Remove dead reactHooks.configs.recommended.rules spread (no-op with v6 array-based config)
  • Add frontend/out/ to .gitignore
  • Update docs (README.md, best_practices.md) to use npm run dev instead of npm start

Related: equinor/pointilla_maps#34

@aeshub
aeshub requested a review from andchiind May 5, 2026 07:47
@aeshub aeshub self-assigned this May 5, 2026
@aeshub
aeshub removed the request for review from andchiind May 5, 2026 08:08
@aeshub
aeshub marked this pull request as draft May 5, 2026 08:08
@aeshub
aeshub force-pushed the use-reusable-frontend-workflow branch from 01445be to 3ca3ef9 Compare May 6, 2026 07:42
@aeshub
aeshub marked this pull request as ready for review May 6, 2026 07:44
@aeshub aeshub added improvement Improvement to existing functionality and removed enhancement labels May 6, 2026
@aeshub
aeshub force-pushed the use-reusable-frontend-workflow branch 5 times, most recently from a364c24 to ea8d6ca Compare May 6, 2026 08:13
@aeshub
aeshub force-pushed the use-reusable-frontend-workflow branch 2 times, most recently from 76fe800 to 55fde5b Compare May 6, 2026 08:37
Replace the inline frontend_lint_and_test.yml workflow with a caller
to the new reusable lint_frontend_package.yml in armada. Align npm
scripts (start->dev, serve->preview, add lint), add react-hooks and
react-refresh eslint plugins, align eslint config with pointilla_maps,
and update all references in docs and Makefile.

Rename fetchImageData/fetchAnalysisData/fetchValueData to use the
'use' prefix (useImageData/useAnalysisData/useValueData) since they
are custom hooks calling useQuery.

React Compiler rules from react-hooks v7 are disabled for now, to
be addressed in a follow-up (see equinor#2698).
@aeshub
aeshub force-pushed the use-reusable-frontend-workflow branch from 55fde5b to eb4c758 Compare May 8, 2026 14:06

@Christdej Christdej left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aeshub
aeshub merged commit bb633dd into equinor:main May 11, 2026
13 checks passed
@aeshub
aeshub deleted the use-reusable-frontend-workflow branch May 11, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants